<?php
require_once("config.inc.php");
require_once(INCLUDE_PATH . "db.inc.php");
require_once(INCLUDE_PATH . "user.inc.php");

session_start();
$User = new User();
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>博客主页</title>
</head>

<body>
<?php
if(!isset($_SESSION['User_F_ID'])){
	echo "您没有登录！"."<a href=\"login.php\">点此登录</a>";
}else{
	$blogUser = $User->GetUserList($_SESSION['User_F_ID']);
	echo "<p>您好！".$blogUser['F_USER_NAME']."先生，欢迎光临本酒店！ <a href=\"logout.php\">注销</a></p>";
	echo "<p><a href=\"admin/index.php\">点击这里进入后台管理</a></p>";
}
?>
</body>
</html>